package com.tms.domain.example;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UseRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UseRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTimeIsNull() {
            addCriterion("time is null");
            return (Criteria) this;
        }

        public Criteria andTimeIsNotNull() {
            addCriterion("time is not null");
            return (Criteria) this;
        }

        public Criteria andTimeEqualTo(Date value) {
            addCriterion("time =", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotEqualTo(Date value) {
            addCriterion("time <>", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThan(Date value) {
            addCriterion("time >", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("time >=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThan(Date value) {
            addCriterion("time <", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThanOrEqualTo(Date value) {
            addCriterion("time <=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeIn(List<Date> values) {
            addCriterion("time in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotIn(List<Date> values) {
            addCriterion("time not in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeBetween(Date value1, Date value2) {
            addCriterion("time between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotBetween(Date value1, Date value2) {
            addCriterion("time not between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andProductLineNoIsNull() {
            addCriterion("product_line_no is null");
            return (Criteria) this;
        }

        public Criteria andProductLineNoIsNotNull() {
            addCriterion("product_line_no is not null");
            return (Criteria) this;
        }

        public Criteria andProductLineNoEqualTo(Integer value) {
            addCriterion("product_line_no =", value, "productLineNo");
            return (Criteria) this;
        }

        public Criteria andProductLineNoNotEqualTo(Integer value) {
            addCriterion("product_line_no <>", value, "productLineNo");
            return (Criteria) this;
        }

        public Criteria andProductLineNoGreaterThan(Integer value) {
            addCriterion("product_line_no >", value, "productLineNo");
            return (Criteria) this;
        }

        public Criteria andProductLineNoGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_line_no >=", value, "productLineNo");
            return (Criteria) this;
        }

        public Criteria andProductLineNoLessThan(Integer value) {
            addCriterion("product_line_no <", value, "productLineNo");
            return (Criteria) this;
        }

        public Criteria andProductLineNoLessThanOrEqualTo(Integer value) {
            addCriterion("product_line_no <=", value, "productLineNo");
            return (Criteria) this;
        }

        public Criteria andProductLineNoIn(List<Integer> values) {
            addCriterion("product_line_no in", values, "productLineNo");
            return (Criteria) this;
        }

        public Criteria andProductLineNoNotIn(List<Integer> values) {
            addCriterion("product_line_no not in", values, "productLineNo");
            return (Criteria) this;
        }

        public Criteria andProductLineNoBetween(Integer value1, Integer value2) {
            addCriterion("product_line_no between", value1, value2, "productLineNo");
            return (Criteria) this;
        }

        public Criteria andProductLineNoNotBetween(Integer value1, Integer value2) {
            addCriterion("product_line_no not between", value1, value2, "productLineNo");
            return (Criteria) this;
        }

        public Criteria andRecorderIdIsNull() {
            addCriterion("recorder_id is null");
            return (Criteria) this;
        }

        public Criteria andRecorderIdIsNotNull() {
            addCriterion("recorder_id is not null");
            return (Criteria) this;
        }

        public Criteria andRecorderIdEqualTo(Integer value) {
            addCriterion("recorder_id =", value, "recorderId");
            return (Criteria) this;
        }

        public Criteria andRecorderIdNotEqualTo(Integer value) {
            addCriterion("recorder_id <>", value, "recorderId");
            return (Criteria) this;
        }

        public Criteria andRecorderIdGreaterThan(Integer value) {
            addCriterion("recorder_id >", value, "recorderId");
            return (Criteria) this;
        }

        public Criteria andRecorderIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("recorder_id >=", value, "recorderId");
            return (Criteria) this;
        }

        public Criteria andRecorderIdLessThan(Integer value) {
            addCriterion("recorder_id <", value, "recorderId");
            return (Criteria) this;
        }

        public Criteria andRecorderIdLessThanOrEqualTo(Integer value) {
            addCriterion("recorder_id <=", value, "recorderId");
            return (Criteria) this;
        }

        public Criteria andRecorderIdIn(List<Integer> values) {
            addCriterion("recorder_id in", values, "recorderId");
            return (Criteria) this;
        }

        public Criteria andRecorderIdNotIn(List<Integer> values) {
            addCriterion("recorder_id not in", values, "recorderId");
            return (Criteria) this;
        }

        public Criteria andRecorderIdBetween(Integer value1, Integer value2) {
            addCriterion("recorder_id between", value1, value2, "recorderId");
            return (Criteria) this;
        }

        public Criteria andRecorderIdNotBetween(Integer value1, Integer value2) {
            addCriterion("recorder_id not between", value1, value2, "recorderId");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNull() {
            addCriterion("staff_id is null");
            return (Criteria) this;
        }

        public Criteria andStaffIdIsNotNull() {
            addCriterion("staff_id is not null");
            return (Criteria) this;
        }

        public Criteria andStaffIdEqualTo(Integer value) {
            addCriterion("staff_id =", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotEqualTo(Integer value) {
            addCriterion("staff_id <>", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThan(Integer value) {
            addCriterion("staff_id >", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("staff_id >=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThan(Integer value) {
            addCriterion("staff_id <", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("staff_id <=", value, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdIn(List<Integer> values) {
            addCriterion("staff_id in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotIn(List<Integer> values) {
            addCriterion("staff_id not in", values, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("staff_id between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("staff_id not between", value1, value2, "staffId");
            return (Criteria) this;
        }

        public Criteria andToolCodeIsNull() {
            addCriterion("tool_code is null");
            return (Criteria) this;
        }

        public Criteria andToolCodeIsNotNull() {
            addCriterion("tool_code is not null");
            return (Criteria) this;
        }

        public Criteria andToolCodeEqualTo(String value) {
            addCriterion("tool_code =", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeNotEqualTo(String value) {
            addCriterion("tool_code <>", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeGreaterThan(String value) {
            addCriterion("tool_code >", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeGreaterThanOrEqualTo(String value) {
            addCriterion("tool_code >=", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeLessThan(String value) {
            addCriterion("tool_code <", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeLessThanOrEqualTo(String value) {
            addCriterion("tool_code <=", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeLike(String value) {
            addCriterion("tool_code like", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeNotLike(String value) {
            addCriterion("tool_code not like", value, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeIn(List<String> values) {
            addCriterion("tool_code in", values, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeNotIn(List<String> values) {
            addCriterion("tool_code not in", values, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeBetween(String value1, String value2) {
            addCriterion("tool_code between", value1, value2, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolCodeNotBetween(String value1, String value2) {
            addCriterion("tool_code not between", value1, value2, "toolCode");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdIsNull() {
            addCriterion("tool_seq_id is null");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdIsNotNull() {
            addCriterion("tool_seq_id is not null");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdEqualTo(Integer value) {
            addCriterion("tool_seq_id =", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdNotEqualTo(Integer value) {
            addCriterion("tool_seq_id <>", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdGreaterThan(Integer value) {
            addCriterion("tool_seq_id >", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("tool_seq_id >=", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdLessThan(Integer value) {
            addCriterion("tool_seq_id <", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdLessThanOrEqualTo(Integer value) {
            addCriterion("tool_seq_id <=", value, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdIn(List<Integer> values) {
            addCriterion("tool_seq_id in", values, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdNotIn(List<Integer> values) {
            addCriterion("tool_seq_id not in", values, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdBetween(Integer value1, Integer value2) {
            addCriterion("tool_seq_id between", value1, value2, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andToolSeqIdNotBetween(Integer value1, Integer value2) {
            addCriterion("tool_seq_id not between", value1, value2, "toolSeqId");
            return (Criteria) this;
        }

        public Criteria andIsOutIsNull() {
            addCriterion("is_out is null");
            return (Criteria) this;
        }

        public Criteria andIsOutIsNotNull() {
            addCriterion("is_out is not null");
            return (Criteria) this;
        }

        public Criteria andIsOutEqualTo(Boolean value) {
            addCriterion("is_out =", value, "isOut");
            return (Criteria) this;
        }

        public Criteria andIsOutNotEqualTo(Boolean value) {
            addCriterion("is_out <>", value, "isOut");
            return (Criteria) this;
        }

        public Criteria andIsOutGreaterThan(Boolean value) {
            addCriterion("is_out >", value, "isOut");
            return (Criteria) this;
        }

        public Criteria andIsOutGreaterThanOrEqualTo(Boolean value) {
            addCriterion("is_out >=", value, "isOut");
            return (Criteria) this;
        }

        public Criteria andIsOutLessThan(Boolean value) {
            addCriterion("is_out <", value, "isOut");
            return (Criteria) this;
        }

        public Criteria andIsOutLessThanOrEqualTo(Boolean value) {
            addCriterion("is_out <=", value, "isOut");
            return (Criteria) this;
        }

        public Criteria andIsOutIn(List<Boolean> values) {
            addCriterion("is_out in", values, "isOut");
            return (Criteria) this;
        }

        public Criteria andIsOutNotIn(List<Boolean> values) {
            addCriterion("is_out not in", values, "isOut");
            return (Criteria) this;
        }

        public Criteria andIsOutBetween(Boolean value1, Boolean value2) {
            addCriterion("is_out between", value1, value2, "isOut");
            return (Criteria) this;
        }

        public Criteria andIsOutNotBetween(Boolean value1, Boolean value2) {
            addCriterion("is_out not between", value1, value2, "isOut");
            return (Criteria) this;
        }

        public Criteria andLocationIdIsNull() {
            addCriterion("location_id is null");
            return (Criteria) this;
        }

        public Criteria andLocationIdIsNotNull() {
            addCriterion("location_id is not null");
            return (Criteria) this;
        }

        public Criteria andLocationIdEqualTo(Integer value) {
            addCriterion("location_id =", value, "locationId");
            return (Criteria) this;
        }

        public Criteria andLocationIdNotEqualTo(Integer value) {
            addCriterion("location_id <>", value, "locationId");
            return (Criteria) this;
        }

        public Criteria andLocationIdGreaterThan(Integer value) {
            addCriterion("location_id >", value, "locationId");
            return (Criteria) this;
        }

        public Criteria andLocationIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("location_id >=", value, "locationId");
            return (Criteria) this;
        }

        public Criteria andLocationIdLessThan(Integer value) {
            addCriterion("location_id <", value, "locationId");
            return (Criteria) this;
        }

        public Criteria andLocationIdLessThanOrEqualTo(Integer value) {
            addCriterion("location_id <=", value, "locationId");
            return (Criteria) this;
        }

        public Criteria andLocationIdIn(List<Integer> values) {
            addCriterion("location_id in", values, "locationId");
            return (Criteria) this;
        }

        public Criteria andLocationIdNotIn(List<Integer> values) {
            addCriterion("location_id not in", values, "locationId");
            return (Criteria) this;
        }

        public Criteria andLocationIdBetween(Integer value1, Integer value2) {
            addCriterion("location_id between", value1, value2, "locationId");
            return (Criteria) this;
        }

        public Criteria andLocationIdNotBetween(Integer value1, Integer value2) {
            addCriterion("location_id not between", value1, value2, "locationId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andDeletionIsNull() {
            addCriterion("deletion is null");
            return (Criteria) this;
        }

        public Criteria andDeletionIsNotNull() {
            addCriterion("deletion is not null");
            return (Criteria) this;
        }

        public Criteria andDeletionEqualTo(Boolean value) {
            addCriterion("deletion =", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionNotEqualTo(Boolean value) {
            addCriterion("deletion <>", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionGreaterThan(Boolean value) {
            addCriterion("deletion >", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionGreaterThanOrEqualTo(Boolean value) {
            addCriterion("deletion >=", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionLessThan(Boolean value) {
            addCriterion("deletion <", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionLessThanOrEqualTo(Boolean value) {
            addCriterion("deletion <=", value, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionIn(List<Boolean> values) {
            addCriterion("deletion in", values, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionNotIn(List<Boolean> values) {
            addCriterion("deletion not in", values, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionBetween(Boolean value1, Boolean value2) {
            addCriterion("deletion between", value1, value2, "deletion");
            return (Criteria) this;
        }

        public Criteria andDeletionNotBetween(Boolean value1, Boolean value2) {
            addCriterion("deletion not between", value1, value2, "deletion");
            return (Criteria) this;
        }

    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}